#!/usr/bin/env node
const discord = require('discord.js')
const ldConfig = require('./config')

ldConfig().then(async conf => {

  // TODO: cool clustering

  const clients = []

  for (const token of conf.discord.botTokens) {
    const client = new discord.Client()
    await client.login(token)

    clients.push(client)
  }

  console.log(`antipath: ${clients.length} clients connected`)

})
